module.exports = {
  publicPath: process.env.NODE_ENV === "production" ? "././" : "./",
  outputDir: "dist/auto_ntf/",
  assetsDir: "./static",
  productionSourceMap: false,
  parallel: false,
  lintOnSave: false,
  devServer: {
    proxy: {
      "/api": {
        target: "http://192.168.10.17:8888",
        changeOrigin: true,
        ws: false,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
    // https: true,
    overlay: {
      warnings: true,
      errors: true,
    },
  },
  // runtimeCompiler: true,
  configureWebpack: (config) => {
    if (process.env.NODE_ENV === "production") {
      config.mode = "production";
      config["performance"] = {
        maxEntrypointSize: 10000000,
        maxAssetSize: 30000000,
      };
    }
  },
};
